package com.biz.primus.ms.depot.degraded;

import com.biz.primus.model.geo.vo.*;
import com.biz.primus.ms.depot.feign.GeoFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * cat feign client熔断策略,统一以Degraded+{对应feign client类名}来命名
 *
 * @author yanweijin
 * @date 2017/9/13
 */
@Component
@Slf4j
public class DegradedGeoFeignClient implements GeoFeignClient {
    @Override
    public CityItemRespVo decodeLocation(LocationDecodeRequestVo reqVo) {
        return new CityItemRespVo();
    }

    @Override
    public ProvinceResponseVo findProvince(Long provinceId) {
        return new ProvinceResponseVo();
    }

    @Override
    public CityResponseVo findCity(Long cityId) {
        return new CityResponseVo();
    }

    @Override
    public DistrictResponseVo findDistrict(Long districtId) {
        return new DistrictResponseVo();
    }

}
